package cz.vutbr.feec.utko.ef.examples.regression;

import cz.vutbr.feec.utko.ef.individuals.ActionTree;

/**
 * The Class TimesAction.
 */
public class TimesAction extends ActionTree {
	
	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 1533194189018768082L;

	/* (non-Javadoc)
	 * @see cz.vutbr.feec.utko.ef.individuals.Action#getSymbol()
	 */
	@Override
	public String getSymbol() {
		return "*";
	}

	/* (non-Javadoc)
	 * @see cz.vutbr.feec.utko.ef.individuals.Action#getValue(java.lang.Object[])
	 */
	@Override
	public Object getValue(Object... operands) {
		assert operands.length == 2;
		Double o1 = (Double) operands[0];
		Double o2 = (Double) operands[1];
		return o1 * o2;
	}
	// the initialization method is not required in a nonterminal
}
